﻿#pragma once
#include <afx.h>
#include <vector>
#include "refprop1.h"
class CPipe :
	public CObject
{
	DECLARE_SERIAL(CPipe)
public:
	CPipe();
	virtual ~CPipe();
	void Serialize(CArchive& ar);

	double t, p, flowRate, preV, /*preDim,*/ di, dout, length, td, pd, rough;
	int nRoughId, nInsulId, nShellId;
	std::vector<int> localIdList, localNumList;
	std::vector<double> localKList;
	double localCoef, insulThk, blackness;
	CString insulName, city;
	int nBracketNum, nPlaceId;
	double bracketLength, bracketHeight;
	double windV, ta;
	int nPipeId, nWeldingType;
	double allowStress, weldingRTPercent, weldingCoef, c1, c2, c3;
	char components[ncmax][refpropcharlength];
	long ncomp;
	double x[ncmax];
	void Run();
};

